let Components = {}
const ComponentsA = import.meta.glob('../../components/*.vue',{ eager: true, import: 'default' })
const ComponentsB = import.meta.glob('../../views/pages/*.vue',{ eager: true, import: 'default' })
Components = { ...ComponentsA, ...ComponentsB }
const CommonComponents = {}
Object.keys(Components).forEach((key)=>{
  const component = Components[key]
  const name = component.name || key.replace('../../components/','').replace('../../views/pages/','').replace('.vue','')
  CommonComponents[name] = component
})
export { CommonComponents }